package com.ctshk.rpc.ship.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 船票线下代理商自定义权限
 * </p>
 *
 * @author 刘蕾
 * @since 2021-03-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_ship_product_channel_offline_agent_custom")
@ApiModel(value="ShipProductChannelOfflineAgentCustom对象", description="船票线下代理商自定义权限")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ShipProductChannelOfflineAgentCustom extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "产品ID")
    private Long productId;

    @ApiModelProperty(value = "线下权限id")
    private Long offlineId;

    @ApiModelProperty(value = "代理商ID")
    private Long agentId;

    @ApiModelProperty(value = "名称")
    private String agentName;

    @ApiModelProperty(value = "加幅类型(1 数值，2百分比)")
    private Integer adjustType;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "百分比")
    private Double percent;

    @ApiModelProperty(value = "是否设置限购（1 限购，2 不限购）")
    private Integer isLimit;

    @ApiModelProperty(value = "限购数量")
    private Integer limitNum;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "修改人")
    private Long modifiedId;

    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;

    @ApiModelProperty(value = "已售数量")
    private Integer soldNumber;


}
